package com.example.demo.com.example.proxy.staticproxy;

public class Father {

    private Person person;

    public Father(Person person){
        this.person = person;
    }
    
    public void marry(){
        before();
        person.marry();
        after();
    }

    private void after() {System.out.println("可以结婚了");}

    private void before() {
        System.out.println("我要物色了，漂亮的");
    }
}
